Optimal. Leaf size=63 \[ \frac{1}{5} x^5 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{5} b c^{5/2} \tan ^{-1}\left (\frac{x}{\sqrt{c}}\right )-\frac{1}{5} b c^{5/2} \tanh ^{-1}\left (\frac{x}{\sqrt{c}}\right )+\frac{2}{15} b c x^3 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0347141, antiderivative size = 63, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.429, Rules used = {6097, 263, 321, 298, 203, 206} \[ \frac{1}{5} x^5 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{5} b c^{5/2} \tan ^{-1}\left (\frac{x}{\sqrt{c}}\right )-\frac{1}{5} b c^{5/2} \tanh ^{-1}\left (\frac{x}{\sqrt{c}}\right )+\frac{2}{15} b c x^3 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6097
Rule 263
Rule 321
Rule 298
Rule 203
Rule 206
Rubi steps
\begin{align*} \int x^4 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right ) \, dx &=\frac{1}{5} x^5 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{5} (2 b c) \int \frac{x^2}{1-\frac{c^2}{x^4}} \, dx\\ &=\frac{1}{5} x^5 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{5} (2 b c) \int \frac{x^6}{-c^2+x^4} \, dx\\ &=\frac{2}{15} b c x^3+\frac{1}{5} x^5 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{5} \left (2 b c^3\right ) \int \frac{x^2}{-c^2+x^4} \, dx\\ &=\frac{2}{15} b c x^3+\frac{1}{5} x^5 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )-\frac{1}{5} \left (b c^3\right ) \int \frac{1}{c-x^2} \, dx+\frac{1}{5} \left (b c^3\right ) \int \frac{1}{c+x^2} \, dx\\ &=\frac{2}{15} b c x^3+\frac{1}{5} b c^{5/2} \tan ^{-1}\left (\frac{x}{\sqrt{c}}\right )+\frac{1}{5} x^5 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )-\frac{1}{5} b c^{5/2} \tanh ^{-1}\left (\frac{x}{\sqrt{c}}\right )\\ \end{align*}
Mathematica [A] time = 0.0205633, size = 88, normalized size = 1.4 \[ \frac{a x^5}{5}+\frac{1}{10} b c^{5/2} \log \left (\sqrt{c}-x\right )-\frac{1}{10} b c^{5/2} \log \left (\sqrt{c}+x\right )+\frac{1}{5} b c^{5/2} \tan ^{-1}\left (\frac{x}{\sqrt{c}}\right )+\frac{2}{15} b c x^3+\frac{1}{5} b x^5 \tanh ^{-1}\left (\frac{c}{x^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.014, size = 53, normalized size = 0.8 \begin{align*}{\frac{a{x}^{5}}{5}}+{\frac{b{x}^{5}}{5}{\it Artanh} \left ({\frac{c}{{x}^{2}}} \right ) }+{\frac{b}{5}{c}^{{\frac{5}{2}}}\arctan \left ({x{\frac{1}{\sqrt{c}}}} \right ) }-{\frac{b}{5}{c}^{{\frac{5}{2}}}{\it Artanh} \left ({\frac{1}{x}\sqrt{c}} \right ) }+{\frac{2\,bc{x}^{3}}{15}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.83608, size = 440, normalized size = 6.98 \begin{align*} \left [\frac{1}{10} \, b x^{5} \log \left (\frac{x^{2} + c}{x^{2} - c}\right ) + \frac{1}{5} \, a x^{5} + \frac{2}{15} \, b c x^{3} + \frac{1}{5} \, b c^{\frac{5}{2}} \arctan \left (\frac{x}{\sqrt{c}}\right ) + \frac{1}{10} \, b c^{\frac{5}{2}} \log \left (\frac{x^{2} - 2 \, \sqrt{c} x + c}{x^{2} - c}\right ), \frac{1}{10} \, b x^{5} \log \left (\frac{x^{2} + c}{x^{2} - c}\right ) + \frac{1}{5} \, a x^{5} + \frac{2}{15} \, b c x^{3} + \frac{1}{5} \, b \sqrt{-c} c^{2} \arctan \left (\frac{\sqrt{-c} x}{c}\right ) + \frac{1}{10} \, b \sqrt{-c} c^{2} \log \left (\frac{x^{2} + 2 \, \sqrt{-c} x - c}{x^{2} + c}\right )\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 42.2058, size = 588, normalized size = 9.33 \begin{align*} \begin{cases} \frac{a x^{5}}{5} & \text{for}\: c = 0 \\\frac{x^{5} \left (a - \infty b\right )}{5} & \text{for}\: c = - x^{2} \\\frac{x^{5} \left (a + \infty b\right )}{5} & \text{for}\: c = x^{2} \\- \frac{6 a c^{69} x^{5}}{- 30 c^{69} + 30 c^{67} x^{4}} + \frac{6 a c^{67} x^{9}}{- 30 c^{69} + 30 c^{67} x^{4}} - \frac{6 b c^{\frac{143}{2}} \log{\left (- \sqrt{c} + x \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} + \frac{3 b c^{\frac{143}{2}} \log{\left (- i \sqrt{c} + x \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} + \frac{3 i b c^{\frac{143}{2}} \log{\left (- i \sqrt{c} + x \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} + \frac{3 b c^{\frac{143}{2}} \log{\left (i \sqrt{c} + x \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} - \frac{3 i b c^{\frac{143}{2}} \log{\left (i \sqrt{c} + x \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} - \frac{6 b c^{\frac{143}{2}} \operatorname{atanh}{\left (\frac{c}{x^{2}} \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} + \frac{6 b c^{\frac{139}{2}} x^{4} \log{\left (- \sqrt{c} + x \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} - \frac{3 b c^{\frac{139}{2}} x^{4} \log{\left (- i \sqrt{c} + x \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} - \frac{3 i b c^{\frac{139}{2}} x^{4} \log{\left (- i \sqrt{c} + x \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} - \frac{3 b c^{\frac{139}{2}} x^{4} \log{\left (i \sqrt{c} + x \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} + \frac{3 i b c^{\frac{139}{2}} x^{4} \log{\left (i \sqrt{c} + x \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} + \frac{6 b c^{\frac{139}{2}} x^{4} \operatorname{atanh}{\left (\frac{c}{x^{2}} \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} - \frac{4 b c^{70} x^{3}}{- 30 c^{69} + 30 c^{67} x^{4}} - \frac{6 b c^{69} x^{5} \operatorname{atanh}{\left (\frac{c}{x^{2}} \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} + \frac{4 b c^{68} x^{7}}{- 30 c^{69} + 30 c^{67} x^{4}} + \frac{6 b c^{67} x^{9} \operatorname{atanh}{\left (\frac{c}{x^{2}} \right )}}{- 30 c^{69} + 30 c^{67} x^{4}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.30346, size = 90, normalized size = 1.43 \begin{align*} \frac{1}{10} \, b x^{5} \log \left (\frac{x^{2} + c}{x^{2} - c}\right ) + \frac{1}{5} \, a x^{5} + \frac{2}{15} \, b c x^{3} + \frac{1}{5} \, b c^{3}{\left (\frac{\arctan \left (\frac{x}{\sqrt{-c}}\right )}{\sqrt{-c}} + \frac{\arctan \left (\frac{x}{\sqrt{c}}\right )}{\sqrt{c}}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]